const rotateString = (A, B) => A.length === B.length && (A + A).indexOf(B) !== -1;
